package com.scuec.demo.service;

import com.github.pagehelper.PageInfo;
import com.scuec.demo.entity.StudentInfo;
import com.scuec.demo.vo.ViewStudentInfo;

import java.util.List;

public interface StudentService {

    PageInfo<ViewStudentInfo> findStudentInfo(Integer pageNum, Integer pageSize);

    //pageNum:当前是第几页   pageSize:每一页多少条数据
    PageInfo<StudentInfo> findStudentPages(Integer pageNum, Integer pageSize);


    public List<StudentInfo> getStudentInfo();

    public StudentInfo getStudentInfoById(Integer id);

    public int  deleteStudentInfoById(Integer id);

    int insertStudentInfo(StudentInfo studentInfo);
    int updateStudentInfo(StudentInfo studentInfo);
}
